<% provide(:head_title, t('libraries.index.head_title')) %>
<% provide(:container_class, 'no-second-nav-container') %>

<%= render partial: 'sidebar', locals: { repositories: @repositories, archived: false } %>
<div class="content-pane flexible repositories-index" data-readonly="<%= !current_user.is_admin_of_team?(current_team) %>">
  <div class="content-header">
    <h1 data-view-mode="active"><%= t('libraries.index.head_title') %></h1>
  </div>
  <div class="content-body">
    <h1>
      <%= t('repositories.index.empty_title') %>
    </h1>
    <% if can_create_repositories?(current_team) %>
      <h5>
        <%= t('repositories.index.empty_description_with_create') %>
      </h5>
      <a id="createRepoBtn" class="btn btn-primary create-new-repository" data-remote="true" href="<%= create_modal_team_repositories_path(current_team) %>">
        <span class="fas fa-plus"></span>
        <span class="hidden-xs"><%= t('libraries.index.no_libraries.create_new_button') %></span>
      </a>
    <% else %>
      <h5>
        <%= t('repositories.index.empty_description_no_create') %>
      </h5>
    <% end %>
  </div>
</div>

<%= javascript_include_tag 'repositories/index' %>
